package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GaeaReportDashboardWidgetMapper;
import com.ruoyi.system.domain.GaeaReportDashboardWidget;
import com.ruoyi.system.service.IGaeaReportDashboardWidgetService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-02
 */
@Service
public class GaeaReportDashboardWidgetServiceImpl implements IGaeaReportDashboardWidgetService 
{
    @Autowired
    private GaeaReportDashboardWidgetMapper gaeaReportDashboardWidgetMapper;


    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public GaeaReportDashboardWidget selectGaeaReportDashboardWidgetById(Long id)
    {
        return gaeaReportDashboardWidgetMapper.selectGaeaReportDashboardWidgetById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param gaeaReportDashboardWidget 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<GaeaReportDashboardWidget> selectGaeaReportDashboardWidgetList(GaeaReportDashboardWidget gaeaReportDashboardWidget)
    {
        return gaeaReportDashboardWidgetMapper.selectGaeaReportDashboardWidgetList(gaeaReportDashboardWidget);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param gaeaReportDashboardWidget 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertGaeaReportDashboardWidget(GaeaReportDashboardWidget gaeaReportDashboardWidget)
    {
        gaeaReportDashboardWidget.setCreateTime(DateUtils.getNowDate());
        return gaeaReportDashboardWidgetMapper.insertGaeaReportDashboardWidget(gaeaReportDashboardWidget);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param gaeaReportDashboardWidget 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateGaeaReportDashboardWidget(GaeaReportDashboardWidget gaeaReportDashboardWidget)
    {
        gaeaReportDashboardWidget.setUpdateTime(DateUtils.getNowDate());
        return gaeaReportDashboardWidgetMapper.updateGaeaReportDashboardWidget(gaeaReportDashboardWidget);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteGaeaReportDashboardWidgetByIds(Long[] ids)
    {
        return gaeaReportDashboardWidgetMapper.deleteGaeaReportDashboardWidgetByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteGaeaReportDashboardWidgetById(Long id)
    {
        return gaeaReportDashboardWidgetMapper.deleteGaeaReportDashboardWidgetById(id);
    }
}
